using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace HardcoreGame.Content.Items.Ammo.SlingBullets
{
	public class ChloroSlingBullet : ModItem
	{
        public override void SetStaticDefaults()
        {
            Item.ResearchUnlockCount = 99;
        }
        public override void SetDefaults()
		{
			Item.damage = 12;
			Item.DamageType = DamageClass.Ranged;
			Item.width = 8;
			Item.height = 8;
			Item.maxStack = Item.CommonMaxStack;
			Item.consumable = true;          
			Item.knockBack = 4f;
            Item.value = 25;
            Item.rare = 7;
            Item.shoot = ModContent.ProjectileType<Projectiles.Ammo.ChloroSlingBullet>();   
			Item.shootSpeed = 6f;               
            Item.ammo = ModContent.ItemType<StoneSlingBullet>();
        }

		public override void AddRecipes()
		{
			Recipe recipe = CreateRecipe(80);
            recipe.AddIngredient(ItemID.ChlorophyteBar, 1);
            recipe.AddTile(TileID.MythrilAnvil);
			recipe.Register();
        }
    }
}
